source /pentest/AH/pentest.config
############################################
#pre-requisites - do not modify, but append if required
#
_pluginName=`basename $0 | sed -r 's/.sh$//'`
echo $_pluginName
_pluginOut="${pluginDir}${_pluginName}/"
echo ${_pluginOut}
mkdir ${_pluginOut}
_pluginLogOut="${loggingDir}${_pluginName}/"
mkdir ${_pluginLogOut}
timeBin="/usr/bin/time"
timeFormat="%E real,%U user,%S sys"
timeCommand="${timeBin} -f '${timeFormat}' -o ${_pluginLogOut}${_pluginName}.time"

############################################
# Variables - Change if required
#
timeoutvalue=300
threads=1

############################################
#body

# Nikto for HTTP
query='select ipaddress from hosts'
cmd="ping -c 1 \${1} | tee ${_pluginOut}\${1}.ping"
/opt/python3/bin/python3 /root/workspace/q2ex/src/q2ex.py -d "$database" -q "$query" -c "$cmd" -t 5

############################################
#post-requisites
#
